COL, COLGROUP | NN n/a IE 4 DOM n/a | ||
The COL object reflects the COL element; the COLGROUP object reflects the COLGROUP element. Both elements provide ways of assigning multiple adjacent columns to groups for convenience in assigning styles, widths, and other visual treatments. | |||
HTML Equivalent<COL> <COLGROUP> | |||
Object Model Reference
|
align | NN n/a IE 4 DOM n/a | ||
Read/Write | |||
Defines the horizontal alignment of content within cells covered by the COL or COLGROUP element. | |||
Exampledocument.all.myCol.align = "center" | |||
Value Any of the three horizontal alignment constants: center | left | right. | |||
|
span | NN n/a IE 4 DOM n/a | ||
Read/Write | |||
The number of adjacent columns for which the element's attribute and style settings apply. | |||
Exampledocument.all.myColgroup.span = 2 | |||
Value Positive integer. | |||
|
vAlign | NN n/a IE 4 DOM n/a | ||
Read/Write | |||
The manner of vertical alignment of text within the column grouping's cells. | |||
Exampledocument.all.myCol.vAlign = "baseline" | |||
Value Case-insensitive constant (as a string): baseline | bottom | middle | top. | |||
|
width | NN n/a IE 4 DOM n/a | ||
Read/Write | |||
The width in pixels of each column of the column grouping. Changes to these values are immediately reflected in reflowed content on the page. | |||
Exampledocument.all.myColgroup.width = 150 | |||
Value Integer. | |||
|